package com.itheima.demo1;
import java.util.HashMap;
import java.util.Map;

public class Demo1 {
    public static void main(String[] args) {
        //创建map集合
        Map<Integer,String> map = new HashMap<>();
        //添加元素V put(K key,V value)
        map.put(001, "小黑");
        map.put(002, "小明");
        map.put(003, "小花");
        map.put(004, "小熊");
        //根据键删除键值对的元素V remove(Object key)
        //map.remove(001);
        System.out.println(map);
    }
}
